<?php

/*

  Action	$3

  +1 Card, +2 Actions.

 */

class Village extends Card implements iAction, iKingdom, iBasic {

    public function __construct() {
        parent::__construct("Village", 3);
        $this->undoPlay = false;
        $this->undoBuy = true;
    }

    public function getDescription() {
        return array(
            "+1 Card",
            "+2 Actions");
    }
    
    public function play(Game $game, $isRealCard) {
        $drawed_cards = $game->drawCards(1);
        $game->addActions(2);
        ScreenDisplay::addScreenMessage($game, true, "get +2 actions  and draw ".  nicePrint($drawed_cards), "gets +2 actions and draws ".sizeof($drawed_cards). " cards");
        $game->cardActionFinished();
        return true;
    }

}

?>